<?php

namespace App;

use Illuminate\Database\Eloquent\Model;

class Product extends Model
{
    protected $table = 'product';

    protected $guarded = [];

    public function belongsToManyParts(){
        return $this->belongsToMany('App\Parts','ProductParts','product_id','parts_id');
    }
}
